Skip to content

Conversation

trask
Copy link
Member

@trask trask commented Jul 7, 2025

No description provided.

Comment on lines 284 to 292
await().until(mockedIngestion::isReceivingLiveMetrics);
String contextRootUrl = getBaseUrl() + "/";
HttpHelper.getResponseCodeEnsuringSampled(contextRootUrl);
waitForHealthCheckTelemetry(contextRootUrl);
await()
.untilAsserted(
() ->
assertThat(mockedIngestion.getLiveMetrics().getRequestCount(contextRootUrl))
.isEqualTo(1));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this ensures that live metrics have been sent before resetData is called below

@trask trask marked this pull request as ready for review July 8, 2025 17:16
Comment on lines +300 to +301
// TODO (trask) need to fix race condition in live metrics
// where sometimes it loses telemetry
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm working on a separate fix for this in azure-sdk-for-java repo

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure/azure-sdk-for-java#45944

I will test it in a separate PR by removing this catch (after this PR is merged)

Copy link
Member

@harsimar harsimar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for fixing this!

@trask trask merged commit ad8756f into main Jul 9, 2025
144 checks passed
@trask trask deleted the livemetrics branch July 9, 2025 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants